//
//  XHNavigationController.m
//  HarmonizePub
//
//  Created by rzhy on 2016/10/31.
//  Copyright © 2016年 Zy. All rights reserved.
//

#import "XHNavigationController.h"

@interface XHNavigationController ()

@end

@implementation XHNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

+ (void)initialize {
    UINavigationBar *navBar = [UINavigationBar appearance];
    UIBarButtonItem *barItem = [UIBarButtonItem appearance];
    
    [navBar setTintColor:[UIColor whiteColor]];
    
    navBar.barTintColor = [UIColor colorWithRed:125/255.0 green:26/255.0 blue:31/255.0 alpha:1.0];
    navBar.titleTextAttributes = @{NSFontAttributeName : [UIFont systemFontOfSize:18.0f],
                                   NSForegroundColorAttributeName : [UIColor whiteColor]};
    [barItem setTitleTextAttributes:@{NSForegroundColorAttributeName : [UIColor whiteColor],
                                      NSFontAttributeName : [UIFont systemFontOfSize:14.0f]
                                      } forState:UIControlStateNormal];
}

@end
